﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace MyBehaviorTree
{
    public class Action : Behavior
    {
        public Action() : base() { }
    }
    public class FAction : Action
    {
        readonly System.Action<BlackBoard> action;
        public FAction(System.Action<BlackBoard> action) :base()
        {
            this.action = action;
        }

        public override State update()
        {
            action.Invoke(blackBoard);
            return State.SUSCCESS;
        }
    }

}
